#!/usr/bin/env python

def init ( liwe, admin = 0 ):
	from liwe import parts

	parts.add ( liwe.layman, "form" )
	parts.add_wwl ( liwe.layman, [ "base", "popbox", "suggest" ] )

	liwe.layman.add_js ( "modules/tags/js/tags.js" )
	liwe.layman.add_js ( "modules/tags/js/tags.widget.js" )
	liwe.layman.add_js ( "modules/tags/js/tags.form.js" )
	liwe.layman.add_js ( "modules/tags/js/tags.form5.js" )

	liwe.layman.add_css ( "modules/tags/gfx/tags.suggest.css" )

	#liwe.layman.add_css ( "/modules/tags/gfx/tags.css" )

	if admin and int ( admin ):
		liwe.layman.add_css ( "modules/tags/gfx/tags.admin.css" )
		liwe.layman.add_js ( "modules/tags/js/tags.admin.js" )
		liwe.layman.add_js ( "modules/tags/js/tags.admin.templates.js" )
		liwe.layman.add_js_code ( "tags.admin.init ();" )

	return ''
